﻿using Kingdee.BOS.ServiceFacade.KDServiceFx;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.WebApi.ServicesStub;

namespace Jac.XkDemo.BOS.WebApi
{
    public class CustomWebApiService : AbstractWebApiBusinessService
    {
        public CustomWebApiService(KDServiceContext context) : base(context)
        {
        }

        public object ExecuteDataSet(string sql)
        {
            return DBServiceHelper.ExecuteDataSet(this.KDContext.Session.AppContext, sql);
        }

        public object ExecuteDynamicObject(string sql)
        {
            return DBServiceHelper.ExecuteDynamicObject(this.KDContext.Session.AppContext, sql);
        }

    }
}
